﻿@model PracticeAzure.Website.Data.Corrigendum

    <tr style="border-style: none;">
        <td style="width: 10%; border-style: none;">
            <div>
                <div class="top" style="text-align: center; background: url('/Content/vbox_bkg.gif') repeat-x; border-style: solid; border-width: 1px; border-color: #bbb;">
                    <div class="title" style="font-size: 0.7em; text-align: center;">
                        更新于
                    </div>
                    <div class="date" style="line-height: 1.1em; font-size: 1.2em; font-weight: bolder; margin: -0.1em 0px 0px 0px; text-align: center;">
                        @Model.UpdatedOn.ToShortDateString()
                    </div>
                    <div class="time" style="padding: 0.4em 0px 0px 0px; font-size: 0.8em; text-align: center;">
                        @Model.UpdatedOn.ToShortTimeString()
                    </div>
                </div>
                <div class="bottom">
                    <div class="posts" style="color: #696969; text-align: center; border-style: solid; border-color: #bbb; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-width: 0px;">
                        @if (Model.ReplyCount > 0)
                        {
                            @Model.ReplyCount @:回复
                        }
                        else
                        {
                            @:无回复
                        }
                        
                    </div>
                </div>
            </div>
        </td>
        <td style="width: 90%; border-style: none;">
            <div class="corrigendum-title" style="font-size: 1.2em; font-weight: bolder;">
                @Html.ActionLink(Model.Title, "Details", "Corrigendum", new { id = Model.ID }, null)
            </div>
            <div class="preview" style="overflow: hidden;">
                @Model.Body
            </div>
            <span class="created-on" style="font-size: 0.8em; color: #696969; ">
                创建于 @Model.CreatedOn.ToString()
            </span>
            <span class="commands" style="font-size: 0.8em; color: #ffffff; text-align: right; ">
                @if (User.Identity.IsAuthenticated)
                {
                    <text> [ </text>
                    @Html.ActionLink("修改", "Edit", new { id = Model.ID })<text> | </text>
                    @Html.ActionLink("删除", "Delete", new { id = Model.ID })
                    <text> ] </text>
                }
            </span>
        </td>
    </tr>